package qc.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 渠成用户身份验证结果枚举
 *
 * @author QuCheng Tech
 * @create 2023/1/11
 */
@Getter
@AllArgsConstructor
public enum QCAuthValidateResultEnum {
    FAIL(0, "失败"),
    SUCCESS(1, "成功"),
    NOT_EXIST(2, "平台中不存在该用户"),
    NOT_IN_PROJECT(3, "用户不在项目中"),
    PWD_ERROR(4, "密码错误"),
    USER_LOCKED(5, "用户被禁用"),
    CLIENT_LOCKED(6, "当前登录客户端被锁定"),//登录失败次数过多，不允许登录
    NOT_VALID(7, "用户允许登录时间未到"),
    EXPIRED(8, "用户已过期");

    @EnumValue
    private int index;
    private String name;
}
